home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / pro_bat.zip / PROBAT.MAN < prev    next >
Text File  |  1990-03-01  |  68KB  |  1,646 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11.  
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18. *BoldFace on
  19.                       P R O - B A T   version I
  20.  
  21.  
  22.            Professional Batch File Development Environment
  23.  
  24.  
  25.             (C)Copyright September 11, 1988   Mark Tigges
  26.  
  27.                         All rights reserved.
  28.  
  29.  
  30.  
  31.  
  32.  
  33.                             _______
  34.                        ____|__     |               (tm)
  35.                     --|       |    |-------------------
  36.                       |   ____|__  |  Association of
  37.                       |  |       |_|  Shareware
  38.                       |__|   o   |    Professionals
  39.                     -----|   |   |---------------------
  40.                          |___|___|    MEMBER
  41.  
  42. *BoldFace off
  43. *FormFeed
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.                             1. COPYRIGHT
  54.  
  55.  
  56.     This program is copyright (C) 1989 by Mark Tigges. All rights
  57.     reserved. Non-registered users are  granted a limited license
  58.     to use this product on a trial basis, and to copy the program
  59.     for trial use by others subject to the following limitations:
  60.  
  61.  
  62.        The program is distributed in unmodified form, complete
  63.        with documentation.
  64.  
  65.        No fee, charge or  other consideration  is requested or
  66.        accepted upon said distribution.
  67.  
  68.        The program is not  distributed in conjunction with any
  69.        other product.
  70.  
  71.        Once  the  trial  period  of  3 weeks has  expired  you
  72.        register  your copy of Probat,  if you wish to continue
  73.        use.
  74.  
  75.  
  76.        If  you  intend  to  use  ProBat  on  a  regular basis,
  77.        registration is expected,  please show your support for
  78.        the author. Commercial, business or governmental use by
  79.        non-registered users is prohibited.
  80. *FormFeed
  81.  
  82.                         1. Table of Contents
  83.  
  84.  
  85.         1  Copyright Statement                           1
  86.         2  Table of Contents                             2
  87.         3  Introduction                                  3
  88.            3.1 Features                                  5
  89.         4  The Pull-Down Menu                            5
  90.            4.1 Usage                                     5
  91.            4.2 Features                                  6
  92.            4.3 The File Menu                             6
  93.            4.4 The Screens Menu                          9
  94.            4.5 The Edit Menu                            10
  95.            4.6 The Menu Menu                            12
  96.            4.7 The Options Menu                         14
  97.         5  The ProBat Editor                            17
  98.            5.1 Commands                                 17
  99.                5.1.1 Editing Commands                   17
  100.                5.1.2 Find & Replace Commands            19
  101.                5.1.3 Block Commands                     19
  102.                5.1.4 Miscellaneous Commands             20
  103.            5.2 Editor Help                              21
  104.         6  The Prompt Editor                            22
  105.         7  The Screen Generator                         23
  106.            7.1 The Screen Generator Menu                23
  107.         8  The Supplementary Programs                   26
  108.            8.1 PBShow.EXE                               26
  109.            8.2 PBMenu.EXE                               26
  110.         9  ProBat Help                                  28
  111.         10 Running ProBat                               29
  112.            10.1 On a Hard Disk                          29
  113.            10.2 On a Floppy Disk                        30
  114.         11 The Distribution Diskettes                   32
  115.            11.1 PrintMan.EXE . . . Usage                32
  116.         12 About Ansi.SYS                               33
  117.         13 Registering your copy                        34
  118. *FormFeed
  119. *BoldFace on
  120. *Wide
  121.      3. Introduction
  122. *BoldFace off
  123.  
  124.     Probat is program that runs on IBM  computers running MS-DOS.
  125.     It  supplies  the user  an environment that is  designed  for
  126.     producing batch files.  The batch files  that ProBat can help
  127.     you develop are much more powerful in nature then batch files
  128.     you might  otherwise create.  This power allows you to tailor
  129.     the MS-DOS environment to a greater degree,  making computing
  130.     on your machine easier and more enjoyable.
  131.  
  132.     3.1  Features
  133.  
  134.           - Easy to use pull-down menu system.
  135.  
  136.           - Full  fledged  command  driven  editor  designed  for
  137.           writing   batch   files,   that   features  quick  easy
  138.           interaction with the menu.
  139.  
  140.           - Distinguishes files  in  full pathnames  when user is
  141.           prompted for a file.
  142.  
  143.           - Complete  screen generator  capable of creating files
  144.           of screens that use  reverse video, variable intensity,
  145.           caps lock,  box drawing and variable  line types. These
  146.           screens  can then  be recalled  within a  batch file by
  147.           using a separate program called PBSHOW.
  148.  
  149.           - User  customizable menu  program called  PBMENU which
  150.           displays  your data  using handsome  graphics. Use this
  151.           program  on its  own or  from ProBat, whichever way  it
  152.           allows you ease of command over your hard disk.
  153.  
  154.           - A   printing   program   built   within  ProBat  that
  155.           highlights your labels in your  batch file, thus making
  156.           reviews of your printed hardcopies easier, facilitating
  157.           a quicker de-bugging process.
  158.  
  159.           - A  menu for  controlling  DOS  functions on  the .SCR
  160.           files  with an  operating  shell  function. A  menu for
  161.           managing  your  .SCR  files,  and  accessing the screen
  162.           generator.  A file  for  managing  you batch  files and
  163.           accessing the  editor. And a  menu for controlling  the
  164.           customizable menu program PBMENU.
  165.  
  166.           - A very extensive Help system, can be used from a main
  167.           help menu, or touch sensitive from within the menu.
  168.  
  169.           When you start Pro-Bat  the main menu selections appear
  170.     on the  top line and  the program identifies  itself, showing
  171.     the version  number and copyright  message. It also  displays
  172.     the registration  number and name  of the owner  of the copy,
  173.     you should send  in that information if you  wish to register
  174.     the copy  in your own  name. A new  copy will be  sent to you
  175.     that displays your name and registration number instead.
  176.  
  177.     NOTE - There are a lot of  traps in this program that need to
  178.     be understood if your work  with ProBat will be enjoyable and
  179.     stay disaster  free. If you  read this manual  thoroughly you
  180.     shouldn't be confronted with too much of a problem and ProBat
  181.     will run smoothly and enjoyably.
  182.  
  183. *FormFeed
  184. *BoldFace on
  185. *Wide
  186.      4. The Pull-Down Menu
  187.  
  188.  
  189.         4.1 Usage
  190. *BoldFace off
  191.  
  192.         Use of the pull-down menu  system is easy. Across the top
  193.     of the screen is displayed the five options of the main menu,
  194.     these are descriptive headings for the options. By moving the
  195.     highlight bar which will at  first be positioned at the first
  196.     option "File"  you can select  the other four  options. These
  197.     are:  "Screen", "Edit",  "Menu" and  "Quit". This  is done by
  198.     pushing the right or left  arrow key, the highlight bar moves
  199.     in  the corresponding  direction.  Under  all of  the options
  200.     except  "Quit" there  is  another  menu, these  four vertical
  201.     menus are  the secondary menses.  They each have  a highlight
  202.     bar of  their own which moves  according to the corresponding
  203.     horizontal  arrow button  you push.  To select  an option you
  204.     simply press  RETURN. ProBat's ensuing  reaction is dependent
  205.     on where  the secondary menues highlight bar is position. For
  206.     instance if you are in the  "Edit" menu and the highlight bar
  207.     is on "Start  a new file" and you select  that ( hit RETURN )
  208.     then ProBat will display a  pop-up box prompting for the name
  209.     of the  batch file you  want to start.  If you have  the main
  210.     menues highlight bar  on "Quit"  and you  hit return then the
  211.     program  stops running  and you  return to  DOS. You can play
  212.     around  with  this  for  a  while  if  you  want;  if you get
  213.     somewhere  you don't want to be push  ESC, it will return you
  214.     to  where   you  were.  The  PullDown   menu  supports  quick
  215.     selection,  that  is  by  pressing  a  letter key ProBat will
  216.     automatically  open the  function  in  the present  menu that
  217.     corresponds to the letter you just pushed.
  218.  
  219.     Example:  In the "Menu" menu there are the following options:
  220.  
  221.                 Enter data for menu
  222.                 Run personalized menu
  223.                 Check menu batch file
  224.                 Print menu data
  225.  
  226.     In ProBat this  appears with the first letter  of each option
  227.     highlighted.
  228.     If you  pushed "C" or  "c" regardless of  where the selection
  229.     bar was in the "Menu" menu ProBat would select the
  230.  
  231.     "Check menu batch file"
  232.  
  233.     option and begin the corresponding process.
  234.  
  235. *BoldFace on
  236.         4.2 Features
  237. *BoldFace off
  238.  
  239.           - Full movement of command by usage of the arrow keys.
  240.  
  241.           - Home and  End pushing these  keys depending on  a few
  242.           factors will get you to either the "Options" menu (End)
  243.           of main menu or "File"  (Home) function of main menu or
  244.           Home  will  get  you  to  the  first  option of current
  245.           secondary menu and End will get you to the last.
  246.  
  247.           - F1 gets  you help on  using ProBat. CTRL-F1  gets you
  248.           help  on the  current secondary  menu. ALT-F1  gets you
  249.           help on the selected topic.
  250.  
  251.           - F10  shows  you  statistics  and  settings  you  have
  252.           employed.
  253.  
  254.           - Pushing  the key  'V' will  show you  the version  of
  255.           ProBat you are using.
  256.  
  257.           - Pushing  'CTRL-S' will put the  program in suspension
  258.           so that you can leave the computer for a long period of
  259.           time without having to worry about screen burn.
  260.  
  261.           - Pushing  'CTRL-R'  will  show  you  the  registration
  262.           number and owner of the copy.
  263.  
  264.           - Hitting  ESC  will  almost  always  get  you  out  of
  265.           mistaken selection. Or  if you are not in  one into the
  266.           editor editing the file that is loaded.
  267.  
  268.           - Pushing ALT-Q anywhere including in the editor except
  269.           for  a menu  option has  been selected,  will quit  the
  270.           program.
  271.  
  272. *BoldFace on
  273.         4.3 The File Menu
  274. *BoldFace off
  275.  
  276.           This  menu  enables  you  to  take  care  of menial DOS
  277.     functions from  within the program  and without using  the Os
  278.     Shell  function.  These  are  "Dir"  and  "ChDir" however for
  279.     anything else there is the  Os-Shell option. Whenever you are
  280.     asked for  the name of  a file when  you are in  this, or any
  281.     other menu for  instance you can use full  path names for the
  282.     file,  eg.  C:\BATCH\MYSCRNS.SCR,  ProBat   will  go  to  the
  283.     directory   C:\BATCH   before   trying   to   load  the  file
  284.     MYSCRNS.SCR.  With  the  screen   files  ProBat  reserves  no
  285.     convention for the file extensions, it does not care what you
  286.     call the file.  Therefore if you load "DBASE.EXE"  if you own
  287.     it and you  try and save a screen on  top of the program then
  288.     you are  out a $300 program  so watch out, don't  do anything
  289.     dumb.  It is  a wise  thing to  call all of your screen files
  290.     "????????.SCR" that way you know what your looking at.
  291.  
  292. *BoldFace on
  293.        Load
  294. *BoldFace off
  295.  
  296.     This  option simply  loads a   file for  use with  the screen
  297.     functions. With  this function the file  must have previously
  298.     existed, if you want to create  a new file to use for storing
  299.     screens  use the  New File  option. After  selection a pop-up
  300.     prompt box appears asking for the name of the file.
  301.  
  302. *BoldFace on
  303.        Pick
  304. *BoldFace off
  305.  
  306.     This option  is a very handy  utility. Every time you  load a
  307.     ".SCR" file ProBat  remembers it and puts it  in a list. Then
  308.     when you use the Pick function it shows you that list in menu
  309.     form and you pick the file that you want to re-load.
  310.  
  311. *BoldFace on
  312.        New file
  313. *BoldFace off
  314.  
  315.     This option is used when you want to start a file for storing
  316.     screens. A prompt box appears asking  for the name of the new
  317.     file  and then  if ProBat  does not  find conflict it creates
  318.     that file.  If ProBat does  find a conflict  (another file by
  319.     the same name on the same  directory) then it asks you if you
  320.     want  to  continue.  When  ProBat  asks  you  if  you want to
  321.     continue it  really means "Do you  want to sacrifice whatever
  322.     is  in that  already existing   file for  this one  you want?
  323.     Because  if you  say yes  the original  will be  deleted, and
  324.     replaced  with  this  one."  So   keep  that  in  mind.  Used
  325.     improperly  this  option  could  make  you  a very frustrated
  326.     person.
  327.  
  328. *BoldFace on
  329.        Write to
  330. *BoldFace off
  331.  
  332.     This option allows you to save the current screen file in use
  333.     to  another file  with a  different name.  This lets you make
  334.     copy of some screens which you  use often, even create a file
  335.     that lets you  archive all of the screens  that you have ever
  336.     used, or screens that you use frequently.
  337.  
  338. *BoldFace on
  339.        Directory
  340. *BoldFace off
  341.  
  342.     Selecting this option  will let you view the  contents of the
  343.     current directory in a pop-up window. You will be first asked
  344.     to enter a file mask, so  that you can view more specifically
  345.     those files that  you wish to see. If the  number of files in
  346.     the directory  are greater than can  be shown at once  in the
  347.     window then you will be abe to scroll through the files using
  348.     PgUp and PgDn.  The function is able to  display four screens
  349.     of files  in total. If more  files than that exist  (400+) in
  350.     the  directory  then  they  simply  will  be  left out. There
  351.     shouldn't be too many occasions when the number of files on a
  352.     directory exceeds ProBat's limits.
  353.  
  354.  
  355. *BoldFace on
  356.        Change dir
  357. *BoldFace off
  358.  
  359.     This option prompts you with a  pop-up box for a path name to
  360.     switch  the current  DOS directory   to. If  an error  occurs
  361.     then ProBat alerts you to that fact and lets you enter again.
  362.  
  363. *BoldFace on
  364.        Os shell
  365. *BoldFace off
  366.  
  367.     This option prompts you with a  pop-up box for a DOS command.
  368.     You can use  any valid DOS command that  you ordinarily would
  369.     use and MS-DOS will perform that command. If however you have
  370.     more than one command to give to DOS you need only hit return
  371.     without entering anything and ProBat  will put you in DOS for
  372.     as long  as you want.  When you want  to come back  to ProBat
  373.     just  type EXIT  and the  DOS prompt  and ProBat  will resume
  374.     where you left off.
  375.  
  376. *BoldFace on
  377.         Quit
  378. *BoldFace off
  379.  
  380.     This option closes your session down. It can also be accessed
  381.     by pressing ALT-Q  anywhere in Pro-Bat. If you  have opted to
  382.     generate Pick files then they are created now.
  383.  
  384. *BoldFace on
  385.         4.4 The Screens Menu
  386. *BoldFace off
  387.  
  388.         This menu lets you manage all of your screen files. Doing
  389.     the  tasks to  them that  need  to  be done.  Such as  adding
  390.     screens editing  screens deleting screen  and copying screens
  391.     between  files. If  you have  not loaded  a screen  file then
  392.     ProBat will  ask you what file  you want to use.  You can use
  393.     full path names to specify files.
  394.  
  395. *BoldFace on
  396.         Add a screen to the file
  397. *BoldFace off
  398.  
  399.     This functions  is the gateway to  the screen generator. When
  400.     you use this  function ProBat clears the screen  and lets you
  401.     and your artistic sense loose to create your screen, when you
  402.     are finished creating your  masterpiece then ProBat adds that
  403.     screen  to the  file when  you  push  F9, to  get out  of the
  404.     generator  push  F10.  For  more  info  go  into  the  screen
  405.     generator and hit  F1 and you will be  shown all the commands
  406.     for high and low intensity and reverse video, capital letters
  407.     and box drawing  characters. Or you can refer  to this manual
  408.     in the Screen  Generator section for more detail.
  409.  
  410. *BoldFace on
  411.        Edit an existing screen
  412. *BoldFace off
  413.  
  414.     You must use  this function when you want  to change a screen
  415.     that you have  already designed in the file.  ProBat will ask
  416.     for the number  of the screen and then let  you edit it if it
  417.     exists. When you  are finished press F9 and  ProBat saves the
  418.     screen in the same position that it got it from.
  419.  
  420. *BoldFace on
  421.        Delete a screen in the file
  422. *BoldFace off
  423.  
  424.     When you have a screen that  you no longer want then use this
  425.     function. However all that ProBat does is blank the slot. You
  426.     now have  a file that  has a hole.  You can now  re-edit that
  427.     screen. When you call it up there will be a blank screen.
  428.  
  429. *BoldFace on
  430.        View all screens in the file
  431. *BoldFace off
  432.  
  433.     This option shows you all of  the screens in the file in use.
  434.     When you  call it up it  starts on the first  screen and then
  435.     waits for you  to press a key - telling  ProBat that you want
  436.     to see the next screen.
  437.  
  438. *BoldFace on
  439.        Copy a screen between files
  440. *BoldFace off
  441.  
  442.     If you  have one screen  in a file  that you want  in another
  443.     file   as  well   then  use   this  option.   Use  is  pretty
  444.     straightforward  - ProBat  prompts for  the source  file, the
  445.     destination file and then the  source files screen number and
  446.     then it does  the job. If it can't find  the source file, the
  447.     destination  file or  the screen  in the  source file then it
  448.     doesn't work.  So there is  a lot of  stuff here that  can go
  449.     wrong, watch out!
  450.  
  451. *BoldFace on
  452.         4.5 The Edit Menu
  453. *BoldFace off
  454.  
  455.         This menu is the menu that  lets you do the heart of what
  456.     batch files need. They need to be edited and this menu is the
  457.     editor. When you are prompted for  the name of a file you may
  458.     enter full pathnames.  When you save that file  again it will
  459.     be saved in  its original directory. Upon loading a  file  if
  460.     you don't  specify a file  extension then ProBat  will assume
  461.     you mean ".Bat" and will add it to your file name. Please see
  462.     the  section of  this manual  for detailed  help on using the
  463.     editor.
  464.  
  465. *BoldFace on
  466.        Load a batch file for editing
  467. *BoldFace off
  468.  
  469.     The title  of this function  is a bit  deceiving because what
  470.     you load need  not be a batch file. In  fact you can load any
  471.     kind of  text file that you  want however the editor  is best
  472.     suited for  writing Batch files  or computer programs  or the
  473.     like.  Since it  doesn't have   the option  of word  wrap and
  474.     adjustable  margins. After  selection of  this option  ProBat
  475.     will respond by displaying a pop-up prompt box asking for the
  476.     name of the file that you  wish to edit. If ProBat can't find
  477.     the file in  the specified directory it will  tell you so. It
  478.     won't load an  empty file from this option.  You must use the
  479.     Start a new  batch file option from the same  menu. To edit a
  480.     file that as yet does not exist.
  481.  
  482. *BoldFace on
  483.        Pick batch file for editing
  484. *BoldFace off
  485.  
  486.     This option is very similar in  purpose to the Pick option of
  487.     the file  menu. ProBat remembers  all of the  recently loaded
  488.     batch files,  and will, when  this option is  chosen, display
  489.     them in  a menu, enabling you  to pick easily from  this menu
  490.     the  file you  want to  edit. After  selecting this  option a
  491.     pop-up box appears, sized depending on the files in the menu,
  492.     displaying  the files  that you  have recently  loaded. There
  493.     will also be  a highlight bar which you use  to pick the file
  494.     you want. Position  the highlight bar on the  chosen file and
  495.     hit Return. That file will then be loaded into the editor and
  496.     you will be place at the top of that file ready to edit.
  497.  
  498.     If you hit return  on the selection that  is identical to the
  499.     file in the editor,  then ProBat will drop you in the file in
  500.     exactly  the same  place that  you left  it allowing  you  to
  501.     continue editing.
  502.  
  503. *BoldFace on
  504.        Begin a new batch file
  505. *BoldFace off
  506.  
  507.     Again the  file to start need  not be a batch  file it can be
  508.     any file,  however if you  don't specify an  extension ProBat
  509.     will  assume .BAT.  This option  differs from  the above only
  510.     that  it cannot  load a  file that  already has  text in  it.
  511.     Therefore if  at the prompt  you specify a  file that already
  512.     exists ProBat  will question your  intention. If you  confirm
  513.     your  entry ProBat  will ERASE  THE ORIGINAL  and give  you a
  514.     blank file where the first text  can be entered. So for God's
  515.     sake be careful!  I hate it when my program  is an outlet for
  516.     inexperienced user's frustration,  especially one that didn't
  517.     read the manual  correctly. If you do use  this option to try
  518.     and  load  a  file  that  already  exists,  and answer YES to
  519.     ProBat's question,  that you do  want to continue,  then your
  520.     file will be erased.
  521.  
  522. *BoldFace on
  523.         Delete a batch file
  524. *BoldFace off
  525.  
  526.     Once again the  file need not be a batch  file however if you
  527.     don't specify an extension then  ProBat adds .BAT by default.
  528.     This  option  does  not  confirm  your  entry from its pop-up
  529.     prompt box  before it deletes  the file. If  for instance you
  530.     accidentally give the wrong path or you enter .BAT instead of
  531.     .BAK you will be very sorry.  So before pushing the ENTER key
  532.     make  sure that  you have  entered the  right file. If ProBat
  533.     can't find the  file then it obviously can't  delete it so it
  534.     will let you know if you make a mistake.
  535.  
  536. *BoldFace on
  537.        Run a batch file
  538. *BoldFace off
  539.  
  540.     The restraints on the type  of file that this option requires
  541.     are a little more stringent than  the others in the menu. The
  542.     type of file  that you specify in the  pop-up prompt box must
  543.     be an executable  file ie. ?.EXE, ?.BAT, or  ?.COM. If ProBat
  544.     can't find  the file then  it will let  you know, because  it
  545.     can't run it if it can't find it.
  546.  
  547. *BoldFace on
  548.        Print a batch file
  549. *BoldFace off
  550.  
  551.     This option will print all of your batch files for you. If it
  552.     finds a  label in  your batch file then it will  highlight it
  553.     with bold  print, making them stand out from all of the other
  554.     text on the page. It will  stop for page breaks, and give the
  555.     page number  and file name  at the bottom  of each page,  and
  556.     will also automatically insert a margin of five spaces at the
  557.     beginning of  each line. If your  printer supports compressed
  558.     mode and you select it to  print your batch files then ProBat
  559.     will not be able to bold type your labels.
  560.  
  561. *BoldFace on
  562.        Save file in editor
  563. *BoldFace off
  564.  
  565.     This option lets you save the loaded text file to the current
  566.     drive and directory.  If you don't want to  enter the editor,
  567.     but you  do want to save  the file then this  is a very handy
  568.     option  to use.  It will  tell you  wether or  not you should
  569.     bother saving. If  the file has been modified  since the last
  570.     save then the option will be displayed like this:
  571. *BoldFace on
  572.  
  573.     Save file in editor      SAVE
  574.  
  575. *BoldFace off
  576.     When you see the SAVE flag you know you should save the file,
  577.     if there  is no SAVE  flag there then  the file has  not been
  578.     modified.  If you  select the  option without  the flag there
  579.     Pro-Bat  will  ignore  you  assume  incompetence  and  not do
  580.     anything.
  581.  
  582. *BoldFace on
  583.         4.6 The Menu Menu
  584. *BoldFace off
  585.  
  586.         This menu takes care of all of the chores that need to be
  587.     done concerning  the custom menu system.  Such as the editing
  588.     of your menu - the keys  and items. And making sure that your
  589.     CustMenu.Bat file  will work correctly. You  can even run the
  590.     program to check it from within Pro-Bat.
  591.  
  592. *BoldFace on
  593.        Edit menu data
  594. *BoldFace off
  595.  
  596.     This option is the one you use to create the PBMenu.DTA file.
  597.     That file contains  the names of your items  and whatever you
  598.     want to use for your keys. I suggest using succesive numbers.
  599.     Instead of  letters in some  configuration because the  third
  600.     option of this menu won't  work properly otherwise, and it is
  601.     very useful. You are shown a  table of empty spaces after you
  602.     select this option. The empty spaces are what you fill in, to
  603.     define your menu.  The title refers to the  name of the menu.
  604.     When you have finished editing push  ESC to save the data. If
  605.     you edit  one space and then  push ESC to save  without first
  606.     pushing RETURN then that one  space won't be saved because it
  607.     wasn't first entered into menu.
  608.  
  609. *BoldFace on
  610.        Run custom menu
  611. *BoldFace off
  612.  
  613.     This option simply runs the  PBMenu.exe file. The exact thing
  614.     as  type PBMenu  at the  DOS prompt.  If the  files that  the
  615.     program needs  aren't on the  current dos directory  then the
  616.     program won't run you have to  make sure that these files are
  617.     all located on the current directory everytime the menu runs.
  618.     That includes after you have selected  a item and the menu is
  619.     running again.
  620.  
  621. *BoldFace on
  622.        Check batch file
  623. *BoldFace off
  624.  
  625.     This  option   only  checks  the   Batch  file  custmenu.bat.
  626.     Therefore  it needs  to read  the data  in PBMenu.dta  first,
  627.     therefore  both of  these files   have to  be located  on the
  628.     current directory  for this option  to work. What  it does is
  629.     look  at all  of your  labels to  see if  there are the right
  630.     number of numeric labels. ( If you are unfamiliar with labels
  631.     please refer  to your Dos  manuals. Books such  as Running Ms
  632.     Dos by Van Wolverton are also very helpful.) Therefore if you
  633.     don't use numeric  labels then this option won't  work. It is
  634.     your choice and the burden is yours to check you CustMenu.bat
  635.     file if you use a different method.
  636.  
  637. *BoldFace on
  638.        Print menu data
  639. *BoldFace off
  640.  
  641.     For convenient  reference this option will  print for you the
  642.     data that is in your menu. This is so that you have something
  643.     to refer to when you are creating your CUSTMENU.BAT file.
  644.  
  645.  
  646. *BoldFace on
  647.        Menu text height
  648. *BoldFace off
  649.  
  650.     This option allows the user the affordability of changing the
  651.     relative  height  of  the  text  displayed  in  the menu. For
  652.     graphic formats reasons the height of the text is interpreted
  653.     differently  by different  systems. The  higher resolution of
  654.     some  systems  displays  the  Fonts  larger  then  a  smaller
  655.     resolution. For  this reason I  have included this  option. I
  656.     wrote  the code  on a  hercules monochrome  card and a height
  657.     value of 2  is optimum therefore it is the  default. On a CGA
  658.     or AT&T it is a different  value. Experiment and come up with
  659.     the value that you like the best.
  660.  
  661. *BoldFace on
  662.         4.7 The Options menu
  663. *BoldFace off
  664.  
  665.     This menu lets you customize Pro-Bat to your tastes. Creating
  666.     an environment  that lets you  work to an  optimum level. You
  667.     have the choice of  turning on/off the sounds, editor window,
  668.     mode pick file saves, and changing the colors.
  669.  
  670. *BoldFace on
  671.        Editor window mode
  672. *BoldFace off
  673.  
  674.     This option is a toggle on/off option, its value is displayed
  675.     as ON or  OFF at the right of the  selection bar. If the mode
  676.     is ON then  the editor is displayed inside  a thin frame, the
  677.     full pathname  of the file  being edited is  displayed at the
  678.     lower left  corner of the window.  If the option is  OFF then
  679.     there is  no frame around  the editor and  the user gets  the
  680.     full amount of room possible to edit the file. There is not a
  681.     large sacrifice of room when the editor window is on.
  682.  
  683. *BoldFace on
  684.        Auto-backup
  685. *BoldFace off
  686.  
  687.     This option is a toggle on/off option, its value is displayed
  688.     as ON or  OFF at the right of the  selection bar. If the mode
  689.     is ON the  editor will create a backup copy  of the file when
  690.     ever it is  saved, naming that copy with  the extension .BAK.
  691.     If the  mode is OFF  this service is  not done. it  is highly
  692.     recomended that you leave this mode on.
  693.  
  694. *BoldFace on
  695.        Generate pick file
  696. *BoldFace off
  697.  
  698.     This option is a toggle on/off option, its value is displayed
  699.     as ON or  OFF at the right of the  selection bar. If the mode
  700.     is on  then when you  quit the current  run of ProBat  a file
  701.     named PROBAT.PCK is saved. It is a list of all the files that
  702.     were on  the pick sequences. If  the mode is off  then ProBat
  703.     will not save  this file. ProBat will read  a PROBAT.PCK file
  704.     and use it regardless of the value of this option.
  705.  
  706. *BoldFace on
  707.        Warning sound
  708. *BoldFace off
  709.  
  710.     This option is a toggle on/off option, its value is displayed
  711.     as ON or OFF at the  right of the selection bar. Whenever you
  712.     make  a  mistake  for  instance  naming  a false directory or
  713.     filename, ProBat  will make an obnoxious  noise to alert your
  714.     attention to your mistake. If you  do not like this noise, or
  715.     you have a hangover you can  turn it off, in effect silencing
  716.     ProBat.
  717.  
  718. *BoldFace on
  719.        Colors
  720. *BoldFace off
  721.  
  722.     This option  will let you  create the visual  effect that you
  723.     enjoy the best. After selecting the option a menu and another
  724.     box  is displayed.  When you  choose an  option from the main
  725.     menu, a sample  of the choice is displayed  in the other box.
  726.     For instance say you chose :
  727.  
  728. *BoldFace on
  729.                   Main menu normal text
  730. *BoldFace off
  731.  
  732.     a portion of the main menu  would be displayed, you then have
  733.     the  power  to  change  the  color  in  which  this  item  is
  734.     displayed. Change  the foreground color  by pushing 'f',  the
  735.     background by pushing 'b'. If you use the upper case versions
  736.     of these letters then the numeric values corresponding to the
  737.     colors will  decrease, as oppose  to increase with  the lower
  738.     case. When you  use Pro-Bat from there on  the colors will be
  739.     displayed as to your choice.
  740.  
  741.     The method of  manipulating the colors is simple.  In the CGA
  742.     color  spectrum (the  one that  ProBat assumes)  there are 15
  743.     colors. As the numeric value corresponding to the item you've
  744.     selected change  ProBat selects the  numbered color value  in
  745.     the  CGA  spectrum.  This  applies  both  for  ForeGround and
  746.     BackGround aspects.
  747.  
  748. *BoldFace on
  749.        Save set-up
  750. *BoldFace off
  751.  
  752.     This option lets you  save the environment configuration that
  753.     you have created to a  file called PROBAT.DTA. When you start
  754.     Pro-Bat  with a  file by  this name  on the current directory
  755.     then Pro-Bat will  read this file and use  the settings in it
  756.     instead  of the  default set.  This makes  for convience, you
  757.     don't have to change the environment to your needs every time
  758.     you use  the program. If you  have several users of  the same
  759.     copy, they  might not all like  the same configuration. These
  760.     people could all have a  floppy of their own containing there
  761.     version  of PROBAT.DTA  on it.  Then these  people each  load
  762.     probat like this :
  763.  
  764. *BoldFace on
  765.                 A:\>c:\bat\probat
  766. *BoldFace off
  767.  
  768.     this way  Pro-Bat will look  on A:\ for  the PROBAT.DTA file.
  769.     Remember  that  when  you  change  the  configuration Pro-Bat
  770.     doesn't automatically save it. You might be mad next time you
  771.     run Pro-Bat if your configuration doesn't appear. So save it.
  772. *FormFeed
  773. *BoldFace on
  774. *Wide
  775.      5. The Pro-Bat Editor
  776. *BoldFace off
  777.  
  778.        To start  the editor refer to  the various functions under
  779.     the Edit menu section.
  780.  
  781.        To enter text  into the editor you use  basically the same
  782.     technique that you  employ in using a type  writer. There are
  783.     however many important differences.
  784.  
  785.        The  cursor always  indicates where  the new  text will be
  786.     entered, and  you can  move the  cursor in a  number  of ways
  787.     (the commands  to do so are described later). You can correct
  788.     mistakes quickly  and easily using  the delete commands.  You
  789.     can  copy and  move text   with the  block commands.  You can
  790.     locate a particular string of text with the find command, and
  791.     optionally   replace  it   with  another   string  using  the
  792.     Find-Replace command.  And in most  cases, you can  even undo
  793.     your last few changes with the restore line or undo commands.
  794.     Each  of  these  commands  (  and  there  are  many more ) is
  795.     described in  the sections that  follow. However for  a quick
  796.     glance at  all the commands and  their respective keystrokes,
  797.     refer  to,  the  quick-reference   tables  available  in  the
  798.     editor's help section - hit F1 to obtain help in the editor.
  799.  
  800. *BoldFace on
  801.      5.1 Editor Commands
  802. *BoldFace off
  803.  
  804.     NOTE - When you see CTRL-? it means that the CTRL key is held
  805.     down while ? is pressed.
  806.  
  807. *BoldFace on
  808.      5.1.1 Basic Editing Commands
  809. *BoldFace off
  810.  
  811.     LEFT ARROW or CTRL-S -  CHARACTER LEFT. Moves the cursor left
  812.     one column.  This command does  not work across  line breaks;
  813.     when the cursor reaches column 1, it stops.
  814.  
  815.     RIGHT ARROW or CTRL-D - CHARACTER RIGHT. Moves the cursor one
  816.     character  to the  right. This  command does  not work across
  817.     line breaks;  when the cursor reaches  the right-hand edge of
  818.     the text  window, the text starts  scrolling horizontal until
  819.     it reaches the extreme right edge of the line ( column 999 ),
  820.     where it stops.
  821.  
  822.     CTRL-LEFT ARROW  or CTRL-A -  WORD LEFT. Moves  the cursor to
  823.     the  beginning of  the word  to the  left. This command works
  824.     across line breaks.
  825.  
  826.     CTRL-RIGHT ARROW or  CTRL-F - WORD RIGHT. Move  the cursor to
  827.     the beginning  of the word  to the right.  This command works
  828.     across line breaks.
  829.  
  830.     UP ARROW  or CTRL-E - LINE  UP. Moves the cursor  to the line
  831.     above. If the cursor is on the line of the window, the window
  832.     scrolls down one line (if there is more text to scroll).
  833.  
  834.     DOWN ARROW  or CTRL-X -  LINE DOWN. Moves  the cursor to  the
  835.     line below. If the cursor is  on the last line of the window,
  836.     the window  scrolls down one line  (if there is more  text to
  837.     scroll).
  838.  
  839.     PGUP or CTRL-R  - PAGE UP. Moves the cursor  one page up with
  840.     an overlap of one line.
  841.  
  842.     PGDN or  CTRL-C - PAGE DOWN.  Moves the cursor one  page down
  843.     with an overlap of one line.
  844.  
  845.     CTRL-K 0..3 - SET MARKER. Sets one of the ten text markers at
  846.     the current  position of the  cursor. CTRL-K 0  sets marker 0
  847.     and CTRL-K 1 sets marker 1 . . .
  848.  
  849.     CTRL-Q 0..3 -  GOTO MARKER. Goes to the  specified marker. If
  850.     the  specified marker  has not  been set  the cursor does not
  851.     move.
  852.  
  853.     CTRL-Q-P - PREVIOUS CURSOR POSITION.  Moves the cursor to its
  854.     previous position. This works after  a Find or a Find/Replace
  855.     function has been carried out.
  856.  
  857.     DEL  or  CTRL-G  -  DELETE  CURRENT  CHARACTER.  Deletes  the
  858.     character which contains the cursor the cursor does not move.
  859.  
  860.     BACKSPACE or  CTRL-H - DELETE CHARACTER  TO THE LEFT. Deletes
  861.     the character to the left of  the cursor and moves the cursor
  862.     right.
  863.  
  864.     CTRL-Y -  DELETE LINE. Deletes the  entire line that contains
  865.     the cursor.
  866.  
  867.     CTRL-Q-Y  -  DELETE  TO  THE  END  OF  LINE. Deletes from the
  868.     character position to the end of the line.
  869.  
  870.     CTRL-T - DELETE WORD. Deletes the text up to the beginning of
  871.     the word to the right of the cursor.
  872.  
  873.     TAB -  INDENT. Indents the  cursor to the  first character of
  874.     the previous line that is past the position of the cursor.
  875.  
  876. *BoldFace on
  877.      5.1.2 Find & Replace Commands
  878. *BoldFace off
  879.  
  880.     B -  Searches  backwards  from  the  current  cursor position
  881.     toward the beginning of the file.
  882.  
  883.     G -  Searches globally.  The entire  file is  scanned for the
  884.     search string regardless of the current cursor position.
  885.  
  886.     L  - Searches only the marked block.
  887.  
  888.     U - Ignores case configuration.
  889.  
  890.     W -  Searches  for  whole  words  only,  skips  out  matching
  891.     patterns embedded in other words.
  892.  
  893.     n - n may be any number. Find the nth occurence of the search
  894.     string counted from the current cursor position.
  895.  
  896.     CTRL-Q-F  - FIND.  Lets you  search for  string of  up to  67
  897.     characters. When you call this  command you will be asked for
  898.     a search string and then options;  you can include any of the
  899.     above options in any combinations.
  900.  
  901.     CTRL-Q-A  - FIND/REPLACE.  Lets you  search for  a string the
  902.     same  way as  above however  it replaces  that string  with a
  903.     specified replace  string. There is  one more option  that is
  904.     available for  searching : N this  lets you skip confirmation
  905.     to replace every match.
  906.  
  907.     CTRL-L -  REPEAT LAST SEARCH.  This command will  do the last
  908.     search that  you did again  allowing you to  quickly find the
  909.     next occurence  of the search  string without reentering  the
  910.     specs.
  911.  
  912. *BoldFace on
  913.      5.1.3 Block Commands
  914. *BoldFace off
  915.  
  916.     F7 or CTRL-K-B - BEGIN BLOCK. Marks the beginning of a block.
  917.     The block  is not visible unless  an end of block  marker has
  918.     been set. The block is shown in highlighted text.
  919.  
  920.     F8 or  CTRL-K-K - END BLOCK.  Marks the end of  a block. Like
  921.     the  begin-block command  the block  does not  become visible
  922.     unless a start of block marker has been set.
  923.  
  924.     CTRL-K-C  -  COPY  BLOCK.  Creates  a  copy  of  a marked and
  925.     displayed block at the  current cursor position. The original
  926.     block is  left unchanged, and  the markers are  placed around
  927.     the new copy of the block.
  928.  
  929.     CTRL-K-V  - MOVE  BLOCK. Moves  a marked  and displayed block
  930.     from  its  current  position  to  the  cursor's position. The
  931.     markers remain around the block at its new position.
  932.  
  933.     CTRL-K-Y - DELETE BLOCK. Delete a marked and displayed block.
  934.     Although  the Undo  last deletion  command (  ctrl-Q-U )  can
  935.     usually  restore portions  of an  accidentally deleted block,
  936.     there  is  no  command  to  restore  a  deleted  block in its
  937.     entirety so use this command with care.
  938.  
  939.     CTRL-K-H - HIDE BLOCK. Toggles  off and on the visual marking
  940.     of a block.
  941.  
  942.     CTRL-K-T - MARK WORD. Marks word contained by the cursor as a
  943.     block.
  944.  
  945.     CTRL-K-R - READ  BLOCK FROM FILE. Reads a  file into the text
  946.     at the cursor's current position exactly as if it were copied
  947.     from another part of the text.  You are prompted for the path
  948.     and name of the file.
  949.  
  950.     CTRL-K-W -  WRITE BLOCK TO FILE.  Writes the currently marked
  951.     block to a file. You are  first prompted for a file name, and
  952.     then ProBat writes the block to  disk under that name with no
  953.     change to its text.
  954.  
  955. *BoldFace on
  956.      5.1.4 Miscellaneous Commands
  957. *BoldFace off
  958.  
  959.     CTRL-U  -  ABORT.  Halts   whatever  command  is  already  in
  960.     progress.
  961.  
  962.     CTRL-K-S -  SAVE AND EDIT.  Simply save the  current file and
  963.     continue editing.
  964.  
  965.     CTRL-Q-L -  RESTORE LINE. Will  undo any changes  done to the
  966.     current line  since you entered  that line. It  does not work
  967.     after you left that line anymore.
  968.  
  969.     CTRL-Q-U -  UNDO DELETION. Restores whole  lines deleted with
  970.     the delete line command (CTRL-Y)  or the Delete block command
  971.     ( ctrl-K-Y ). It does not restore single characters or words.
  972.  
  973.     INS  or  CTRL-V  -  TOGGLE  INSERT  MODE.  Selects  Insert or
  974.     Overwrite mode.  The cursor's size is  an indication of which
  975.     mode you are in.
  976.  
  977.     CTRL-Q-I  - TOGGLE  AUTOINDENT.  When  autoindent mode  is in
  978.     effect, the new line command ( ENTER ) will return the cursor
  979.     to the first character of the previous line.
  980.  
  981.     F10 - EXIT  EDITOR. This command will return  you to the main
  982.     menu. However  it does not  save the file,  so you must  keep
  983.     that in mind.
  984.  
  985. *BoldFace on
  986.      5.2 Editor Help
  987. *BoldFace off
  988.  
  989.     The editor's  help system isn't  very extensive. All  that is
  990.     included  are tables  of commands.  When you  push F1 you are
  991.     faced with a  message and a menu from which  you can select a
  992.     group of commands to choose to get further help.
  993. *FormFeed
  994. *BoldFace on
  995. *Wide
  996.      6. The Prompt Editor
  997. *BoldFace off
  998.  
  999.         The line editor which is used  for all of the prompts has
  1000.     itself  many commands  to alter   and edit  text. If  you are
  1001.     presented with a response already you can enter that response
  1002.     by hitting <return>.
  1003.  
  1004.  
  1005.     Home : This moves the cursor to the beginning of your line.
  1006.  
  1007.     End : This moves the cursor to the end of your line.
  1008.  
  1009.     Insert :  This will toggle  the insert specification.  If you
  1010.     have it  on then hitting  the insert key  will call overwrite
  1011.     and vice versa.
  1012.  
  1013.     Del  : This  key will  delete the  Digit that  the cursor  is
  1014.     centered on.
  1015.  
  1016.     BackSpace : This key moves  the cursor backwards one space at
  1017.     a time while deleting every character in its path.
  1018.  
  1019.     ALT-B :  This key will  automatically enter the  path name of
  1020.     the file in the editor to the prompt editor.
  1021.  
  1022.     ALT-S :  This key will  automatically enter the  path name of
  1023.     the screen file that is in current use.
  1024.  
  1025.     Horizontal  arrow  keys  :  These  keys  will  move, in their
  1026.     respective direction, the cursor one space.
  1027.  
  1028.     Vertical  arrow  keys  :  These   keys  are  treated  as  the
  1029.     equivalent of <RETURN>.
  1030. *FormFeed
  1031. *BoldFace on
  1032. *Wide
  1033.       7. The Screen Generator
  1034. *BoldFace off
  1035.  
  1036.         The screen  generator is a low  level word processor that
  1037.     allows  you  to  type  anything  on  the  screen in any video
  1038.     attribute, including  boxes with either  of the two  IBM line
  1039.     modes (single  and double). The  generator does not  have any
  1040.     idea what you are typing in. After you have typed the key the
  1041.     screen generator forgets what it  was. Therefore if you go to
  1042.     the same place  again the generator won't know  what is there
  1043.     so it ignores  it. If you type a character  on top of another
  1044.     character the original character will be lost. Arrow keys are
  1045.     not  included as  characters, if  you hit  an arrow  key when
  1046.     there  is  another  character  at  the  cursor  the  original
  1047.     character will still be there.
  1048.  
  1049.     If you are editing a screen  by having used the Edit existing
  1050.     screen or the Add a new  screen option and are finished doing
  1051.     so, you will  want to save it. Pushing F10  does not save the
  1052.     screen before giving  you back ProBat, you must  first use F9
  1053.     or your screen will be lost. Be careful, after much thought I
  1054.     concluded that this was the best way because this way you can
  1055.     edit  -  save  and   continue  editing  without  leaving  the
  1056.     generator  or  the  screen.  In  short  save  before  you are
  1057.     finished or mid  way in your editing job  in case an accident
  1058.     occurs.
  1059.  
  1060.     The theory  upon how the screen  generator is integrated into
  1061.     the rest  of Pro-Bat is this.  You work on screens  in a file
  1062.     environment,  each screen  being a  separate record  withen a
  1063.     file  that stores  your screens.  You can  change a screen at
  1064.     your whim after you have created and saved it once, just like
  1065.     a word processor. However  the first screen in the  file is a
  1066.     special screen. It is numbered  0 and is called the template.
  1067.     Presumably  when you  store screens  in a  file those screens
  1068.     must somehow be related. For instance in the file EXAMPLE.SCR
  1069.     all  of those  screens are   for display  in the  sample menu
  1070.     system. We can assume that  on some circumstances the screens
  1071.     in the  file may look  very familiar to  each other. This  is
  1072.     where the template comes in. To  work on a series of screens,
  1073.     all you have to do is load the template before you start work
  1074.     on  each screen.  Then doing  whatever is  unique about  each
  1075.     particular screen.
  1076.  
  1077. *BoldFace on
  1078.      7.1 The Screen Generator Menu
  1079. *BoldFace off
  1080.  
  1081.     The  screen  generator  has  several  functions  that  can be
  1082.     accessed via a  menu. This menu is called  up by pressing F10
  1083.     when  you are  in the  screen generator.  Those functions are
  1084.     listed below.
  1085.  
  1086. *BoldFace on
  1087.         Change foreground color
  1088. *BoldFace off
  1089.  
  1090.     Choosing  this option  calls up  a menu  of the  16 different
  1091.     colors possible in a CGA system, choosing one of those colors
  1092.     changes  the color  with which  the foreground  of subsequent
  1093.     text is displayed.
  1094.  
  1095. *BoldFace on
  1096.         Change background color
  1097. *BoldFace off
  1098.  
  1099.     This option  is identical to  the above only  that you choose
  1100.     the background color.
  1101.  
  1102. *BoldFace on
  1103.         Display color table
  1104. *BoldFace off
  1105.  
  1106.     This  option will  merely bring  up a  reference table of the
  1107.     numerical values of the colors in the CGA spectrum.
  1108.  
  1109. *BoldFace on
  1110.         Load the template
  1111. *BoldFace off
  1112.  
  1113.     This  option loads  screen no  0 into  the present screen and
  1114.     allows you  to edit it.  The editing you  do does nothing  to
  1115.     change the  template screen. if  you have worked  on a screen
  1116.     and then load the template  the work you have done previously
  1117.     will be lost.
  1118.  
  1119. *BoldFace on
  1120.         Save this screen
  1121. *BoldFace off
  1122.  
  1123.     This option  will save the screen  you are working on  in the
  1124.     correct position in the file.
  1125.  
  1126. *BoldFace on
  1127.         Abandon this screen
  1128. *BoldFace off
  1129.  
  1130.     This  will merely  give you   a clear  slate by  clearing the
  1131.     screen.  If you  saved your  previous work  however then that
  1132.     work still exists on the disk.
  1133.  
  1134. *BoldFace on
  1135.         Toggle box mode
  1136. *BoldFace off
  1137.  
  1138.     When on box mode allows  you to display boxes. Selecting this
  1139.     mode changes the  value of box mode. If it  was on it will be
  1140.     turned off and vice versa. To display a box use the following
  1141.     keys when in box mode:
  1142.  
  1143.        w rrrrr e      ie. W : Top left corner
  1144.        f       f          R : Horizontal line
  1145.        f       f          E : Top right corner
  1146.        s rrrrr d          F : Vertical line
  1147.                           D : Bottom right corner
  1148.                           S : Bottom left corner
  1149.  
  1150. *BoldFace on
  1151.         Toggle box style
  1152. *BoldFace off
  1153.  
  1154.     This  changes  the  line   mode  between  single  and  double
  1155.     regardless of the value of the Box drawing mode.
  1156.  
  1157. *BoldFace on
  1158.         Display statistics
  1159. *BoldFace off
  1160.  
  1161.     Selecting this  option will display  a window containing  the
  1162.     following information:
  1163.  
  1164.     -Filename
  1165.     -Screen no.
  1166.     -Value of Box drawing mode
  1167.     -Type of Box style enabled
  1168.     -Foreground color
  1169.     -Background color
  1170.     -X position
  1171.     -Y position
  1172.  
  1173. *BoldFace on
  1174.         Quit screen generator
  1175. *BoldFace off
  1176.  
  1177.     This  function will  allow you  to exit  the screen generator
  1178.     back to the point where you left ProBat. It will not check to
  1179.     see if  you have saved  your screen, so  if you need  to make
  1180.     sure you do.
  1181. *FormFeed
  1182. *BoldFace on
  1183. *Wide
  1184.   8. The Supplementary Programs
  1185. *BoldFace off
  1186.  
  1187.         On the distribution disk  there are two PB????.EXE files.
  1188.     These two files are not  cardinal to ProBat's running however
  1189.     if you  want to take full  advantage of ProBat's capabilities
  1190.     then you will be using these programs. There are two of them:
  1191.     PBSHOW.EXE and  PBMENU.EXE. Each has  their own use  and each
  1192.     depend  on ProBat  to produce   the things  they need  to run
  1193.     however once they have them they run totally on their own.
  1194.  
  1195.     8.1 PBSHOW.EXE
  1196.  
  1197.     This file  is used in conjunction  with the .SCR files  it is
  1198.     your  ticket to  displaying the  screens you  have created in
  1199.     ProBat from within a batch file.
  1200.  
  1201.     Usage : PBSHOW %1 %2 where %1 & %2 are parameters you pass to
  1202.     the program.
  1203.  
  1204.              %1 - The number of screen in the  file you want
  1205.                   displayed.  The  first screen  is  #0, the
  1206.                   second  screen is #1 etc.
  1207.              %2 - The file  that the  screen  is located in.
  1208.                   ie MYSCRNS.SCR.  Therefore  typing  PBSHOW
  1209.                   0  MYSCRNS.SCR   will  display  the  first
  1210.                   screen in the file MYSCRNS.SCR.
  1211.  
  1212.     8.2 PBMENU.EXE
  1213.  
  1214.     This  file is  used to  display your  customized menu. If you
  1215.     haven't defined one  using the Enter menu data  option of the
  1216.     Menu menu then  it won't work, otherwise it  will display the
  1217.     Keys and Items that you defined.
  1218.  
  1219.     Usage : PBMENU. All you have  to type is the files name. From
  1220.     there  the  program  will  display  your  menu  (  in  a very
  1221.     good-looking graphic format ).  PBMENU will take your reponse
  1222.     and pass it to your CUSTMENU.BAT file as a parameter.
  1223.  
  1224.     CustMenu.bat : This file is a  batch file that does what your
  1225.     menu says it  will do. For example lets say  that the user of
  1226.     your  menu  selects  the  first  option  of  your  menu. That
  1227.     response will be passed to this file as a parameter. Lets say
  1228.     the first option of your menu was
  1229.  
  1230. *BoldFace on
  1231.                         1. Run Word Processor
  1232. *BoldFace off
  1233.  
  1234.          The user would have  typed 1 [RETURN] therefore CustMenu
  1235.     would be given  '1' as its parameter. If you  have a label in
  1236.     CUSTMENU.BAT called  1 then you  can differentiate the  input
  1237.     with labels. If you are unfamiliar with labels and batch file
  1238.     structure  please refer  to you  MS-DOS manual,  it should be
  1239.     explained  there.  Books  such   as  Running  Ms-Dos  by  Van
  1240.     Wolverton are  also very helpful! So  the CustMenu file might
  1241.     look like this
  1242.  
  1243.                echo off
  1244.                cls
  1245.                goto %1
  1246.                :1
  1247.                  cd\EDIT
  1248.                  Word
  1249.  
  1250.                  REM or whatever wordprocessor you own
  1251.  
  1252.                  goto DONE
  1253.  
  1254.                  REM the  above line is very  important. It must
  1255.                  REM be the last line  in each Label or DOS will
  1256.                  REM run  each label that appears  after the one
  1257.                  REM you  wanted  before  returning   you to the
  1258.                  REM menu.
  1259.  
  1260.                REM one  label  for each  key of  your menu would
  1261.                REM exist here.
  1262.  
  1263.                :DONE
  1264.                  CD\BATCH
  1265.  
  1266.                  REM Or  whatever directory you  hold the PBMENU
  1267.                  REM program  in.  This line  is very  important
  1268.                  REM because  otherwise PBMENU won't  be able to
  1269.                  REM find  CUSTMENU.BAT to run your next choice.
  1270. *FormFeed
  1271. *BoldFace on
  1272. *Wide
  1273.       9. The Pro-Bat Help System
  1274. *BoldFace off
  1275.  
  1276.         The ProBat  help system is  a very extensive  one. If you
  1277.     can see it in  the main menu then you can get  help on it. It
  1278.     is easy to use and very comprehensible.
  1279.  
  1280.         By hitting the key F1  you have a resource of information
  1281.     which  is much  more concise  though certainly  comparable to
  1282.     this manual's.  By working your  way through the  help system
  1283.     using  the  menus  you  can  eventually  find  what you want.
  1284.     However this is  slow and becomes too repetitive  if you want
  1285.     to look  at twice very  quickly. To solve  this problem there
  1286.     are  two other  ways to  access the  information: ALT-F1  and
  1287.     CTRL-F1.
  1288.  
  1289.         ALT-F1. Pressing this combination  of keys gives you very
  1290.     specific information. It will tell  you all about the part of
  1291.     Pro-Bat that the highlighted  selection bar is positioned on.
  1292.     For  instance  say  you  are  in  the  Screens  menu  and the
  1293.     highlight bar is  on Delete a screen from  file and you press
  1294.     ALT-F1.  Strange   and  wonderful  things   happen.  You  get
  1295.     information on what Deleting a screen from file is all about.
  1296.     With this method of Help  access the beginner can quickly get
  1297.     the gist of how to use the program. And more or less what the
  1298.     program can do for you.
  1299.  
  1300.         CTRL-F1. To  complement ALT-F1 there  is this capability.
  1301.     If this sequence of keys is pressed then you will get help on
  1302.     whichever  menu is  currently open.  Say that  you are in the
  1303.     Edit menu. You press CTRL-F1  and you get a message revealing
  1304.     what this menu is all about and also a menu with each item of
  1305.     this menu included so that you can select more specific help.
  1306.  
  1307.     NOTE - The  help system should not be  used as an alternative
  1308.     to  the  manual.  Before  using  Pro-Bat  heavily  you should
  1309.     understand a large protion of the manual. The program was not
  1310.     written by a professional and  doesn't have a large degree of
  1311.     file protection written into it.  If you have read the manual
  1312.     thoroughly you shouldn't run into any problem. I'm not saying
  1313.     that something  WILL happen so  READ THE MANUAL  but there is
  1314.     nothing wrong with some prevention.
  1315.  
  1316.     On-Line help can be reached by phoning me at 1-(604)-365-6676
  1317.     or 1-(604)-926-0366 (use the 1  only if it is long distance).
  1318.     I am only too glad to provide technical assistance, I realize
  1319.     its need and I enjoy helping you, so feel free.
  1320. *FormFeed
  1321. *BoldFace on
  1322.       10. Running Pro-Bat
  1323. *BoldFace off
  1324.  
  1325.         ProBat is a  very well behaved program if  you run it the
  1326.     way it likes to be run. By this I mean that if you keep a few
  1327.     things in  mind about where files  are and when you  need and
  1328.     when they should  be where you should avoid  that noisy alarm
  1329.     that always sounds when something goes wrong.
  1330.  
  1331. *BoldFace on
  1332.         10.1 Running off a hard disk setup
  1333. *BoldFace off
  1334.  
  1335.     With the fixed disk type set-up,  I have found that using one
  1336.     directory  say "c:\bat"  to store  absolutely everything  you
  1337.     need for ProBat on that directory, and include that directory
  1338.     in your path command. That way  when you want to run the menu
  1339.     program,  if  the  last  line  of  your  CustMenu.BAT file is
  1340.     "CD\BAT"  then the  program will  always return  to where the
  1341.     files that it  needs are located. The only  problem though is
  1342.     with  using the  PBShow progam.  Say that  one of  your batch
  1343.     files is of in some directory  and it wants to run the PBShow
  1344.     program.  What does  it do?  It will  run the  program but it
  1345.     won't find whatever .SCR file  you want because it is located
  1346.     in C:\BAT. You have two options, 1) relocate the .SCR file or
  1347.     2) always use a pipe command with PBShow like this: "CD\BAT |
  1348.     PbShow 0 MyScrns.scr | CD\WORD". With this set up DOS will go
  1349.     to c:\bat run  PbShow and then go back  to c:\word, if that's
  1350.     the directory the file was in - whatever! Both will work, but
  1351.     I recommend the latter. With this  way you know where in hell
  1352.     all  your .SCR  files are,  and you  don't have  to use  long
  1353.     repetitive path  names when refering to  them inside Pro-Bat.
  1354.     It is however slower because the directory has to be changed.
  1355.  
  1356.     By  storing all  of your  Pro-Bat stuff  on one directory you
  1357.     don't  have to  worry about  editing batch  files that are on
  1358.     another directory  like the autoexec batch  file. Because you
  1359.     can refer to it as c:\autoexec.bat and Pro-Bat knows what you
  1360.     are talking about. It is for this reason that I included that
  1361.     function  in  Pro-Bat.  It  makes  running  the program a lot
  1362.     simpler. With this kind of a set up you won't have to use the
  1363.     Change dir function  in the file menu but it  is there if you
  1364.     need it.
  1365.  
  1366.     If you do decide to take advantage of the Menu you can create
  1367.     then you  should do this type  of a thing: Write  an autoexec
  1368.     batch file  that at the  end changes directory  to c:\bat and
  1369.     runs  the  menu  program.  Things  should  go smoothly, don't
  1370.     forget to add the line CD\BAT to the end of the autoexec file
  1371.     or PbMenu won't run properly.
  1372.  
  1373. *BoldFace on
  1374.         10.2 Running off a floppy setup
  1375. *BoldFace off
  1376.  
  1377.     ProBat  does  really  work  best  on  a  hard drive, but what
  1378.     program doesn't? Anyway with a little thought ProBat can be a
  1379.     great help even on floppy setups. If you only have one floppy
  1380.     though you're out of luck. All  you can do is run the program
  1381.     and  write batch  files. You  can take  full advantage of the
  1382.     screen utility but all you do  with the menu stuff is look at
  1383.     it. Or you  can look at your bank  account and go and by  a 5
  1384.     meg HD if its all you can  afford. The speed of a HD alone is
  1385.     worth  it. To  run the   PBMenu program  you always  need the
  1386.     system  diskete in  the drive  that the  machine booted from,
  1387.     always.  So  if  you  want  to  use  the  Menu  program it is
  1388.     possible. However there is a draw back. (Isn't there always?)
  1389.     Because PBMenu has to read  a .DTA file (PBMenu.DTA) it takes
  1390.     a little while running of a floppy. Soooo, what you can do is
  1391.     this  - configure  a ram   disk. See  your Ms-Dos  manual for
  1392.     particulars on doing that (  if you're not running Ms-Dos 3.x
  1393.     forget  about it  ). What  you can  do with  that is create a
  1394.     system diskette that has an autoexec file on it like this:
  1395.  
  1396.                 echo off
  1397.                 time
  1398.                 date
  1399.                 prompt $p$g
  1400.                 copy PBMenu.* d:
  1401.                 copy CustMenu.bat d:
  1402.                 d:
  1403.                 PBMenu
  1404.  
  1405.     After this, your CustMenu. bat  file will look something like
  1406.     this  when asked  to run  the Word  process label  (say it is
  1407.     label :3)
  1408.  
  1409.      1        .
  1410.      2        .
  1411.      3        .
  1412.      4        :3
  1413.      5          echo off
  1414.      6          cls
  1415.      7          echo Please insert the Word Process diskette in drive B
  1416.      8          pause
  1417.      9          b:
  1418.      10         WORD
  1419.      11         goto DONE
  1420.      12       .
  1421.      13       .
  1422.      14       .
  1423.      15       :DONE
  1424.      16         d:
  1425.  
  1426.  
  1427.     ( Line numbers for reference only. )
  1428.  
  1429.  
  1430.             This way  you have control over  your applications if
  1431.     you want  it without having  to worry about  DOS commands. If
  1432.     you are  not familiar with  the PAUSE command  in line #8  it
  1433.     displays "Strike  a key when ready  . . ." this  way you have
  1434.     displayed  a message  to the  user saying  that when  you are
  1435.     finished  the  task  you  should  do  hit  a key to continue.
  1436.     Remember  that the  disk you  booted the  system with  should
  1437.     always remain  in the A drive  because PBMenu has to  look at
  1438.     Command.COM everytime  it runs CUSTMENU.BAT. That  is where a
  1439.     hard drive is nice because it  takes a while to read the .COM
  1440.     file.
  1441.  
  1442.  
  1443.     NOTE  - If  you want  disk transfer  of files  ( reading  and
  1444.     writing ) to work faster  try adding the line "Buffers=30" to
  1445.     your config.sys file.
  1446.  
  1447. *FormFeed
  1448. *BoldFace on
  1449. *Wide
  1450.       11. The Pro-Bat Disks
  1451. *BoldFace off
  1452.  
  1453.         The distribution disk holds the following files:
  1454.  
  1455.       ProBat.exe    -> Pro-Bat the executable program.
  1456.       PBMenu.exe    -> The executable menu program.
  1457.       PBShow.exe    -> The  executable  program   for  displaying
  1458.                        screens.
  1459.       PrintMan.exe  -> The executable program to print the manual.
  1460.       ProBat.man    -> The Pro-Bat manual.
  1461.       ReadMe.now    -> Text file with last minute specific notes.
  1462.       RegForm.txt   -> Registration form to send in.
  1463.  
  1464.     If your  version doesn't contain  all of these  files and you
  1465.     would like them then write and register and I will send you a
  1466.     complimentary disk.  If you don't have  the registration form
  1467.     then you must include if you  don't mind, your first and last
  1468.     names,  your phone  number (area  code too  please) and  your
  1469.     address, along with the  twenty-five dollar registration fee.
  1470.     Please  also include  the version  of the  copy that  you are
  1471.     currently using and the registration  number. This, so that I
  1472.     can justly reward whomever gave  you the copy. Please see the
  1473.     below  section  Benefits  of  Registration  for enticement to
  1474.     register. Make checks payable to me, Mark Tigges.
  1475.  
  1476.     In  addition the  diskette  contains  several files  that are
  1477.     for  the  example  on  using  ProBat.  Study  these files and
  1478.     understand  their use  and  purpose  and you  will understand
  1479.     ProBat. They are:
  1480.  
  1481.        -> Example.SCR   - holds the screens for the menu system
  1482.        -> CustMenu.BAT  - batch file to carry out menu options
  1483.        -> PBMenu.Dta    - data file holding menu data
  1484.  
  1485.     This example system should give you the ability to understand
  1486.     all of the facilities and power that ProBat affords the user.
  1487.  
  1488. *BoldFace on
  1489.     11.1 PrintMan.EXE . . . Usage
  1490. *BoldFace off
  1491.  
  1492.     To print this manual properly you  must use this file. At the
  1493.     Dos command line just type  PrintMan. If you include "CRT" as
  1494.     a parameter then the manual will be printed to the screen.
  1495. *FormFeed
  1496. *BoldFace on
  1497. *Wide
  1498.       12. About Ansi.SYS
  1499. *BoldFace off
  1500.  
  1501.     Ansi.SYS is  a file included with  MS-DOS. What it can  do is
  1502.     this,  give  you  control   over:  video  attributes,  cursor
  1503.     position,  and  other  things.  Therefore  if  you  have used
  1504.     PBShow.EXE  to display  a screen   you may  want to  move the
  1505.     cursor to a specific place on  the screen. To do this you use
  1506.     Ansi.SYS commands  in your batch file.  The commands are much
  1507.     to  lengthy to  repeat here,  they are  in your Ms-Dos manual
  1508.     anyways. Besides if I listed them here I would be plagerizing
  1509.     from my MicroSoft press Ms - Dos manual - that is against the
  1510.     law so I won't. However these commands can be used just about
  1511.     anywhere  and I  use them  extensively in  my favorite system
  1512.     prompt.  I have  displayed that  prompt for  you below  as an
  1513.     example.
  1514.  
  1515. *BoldFace on
  1516.     prompt $e[s$e[7m$e[1;1H$p$e[m$e[K$e[1;67H$d$e[2;67H$t$h$h$h$e[u.
  1517. *BoldFace off
  1518.  
  1519.     Quite lengthy. This is what it says.
  1520.  
  1521.     $e[s     - save current cursor position
  1522.     $e[7m    - change display attribute to reverse video
  1523.     $e[1;1H  - move cursor to position 1,1
  1524.     $p       - display the path
  1525.     $e[m     - put display attributes back to normal
  1526.     $e[K     - delete to the end of line
  1527.     $e[1;67H - move cursor to position 1,67
  1528.     $d       - display the date
  1529.     $e[2;67H - move cursor to 2,67
  1530.     $t       - display the time
  1531.     $h$h$h   - delete last 3 characters - hundreths of seconds
  1532.     $e[u     - restore the cursor position, from the saved value
  1533.     .        - the actual prompt that is there on each line
  1534.  
  1535.     By the way  if you want to use the  ANSI commands you have to
  1536.     include in  your config.sys file  the line "device=ansi.sys",
  1537.     you  also have  to make  sure that  ansi.sys is  on the  root
  1538.     directory of the system disk that you are using to boot.
  1539.  
  1540.     So now you have seen some of the basic capabilities available
  1541.     to you,  try experimenting with  them a little bit in some of
  1542.     your own batch files.
  1543. *FormFeed
  1544. *BoldFace on
  1545. *Wide
  1546.       13. Registering Your Copy of Pro-Bat
  1547. *BoldFace off
  1548.  
  1549.  
  1550.     The usage liscence that   I afford to users is fairly simple.
  1551.     Everybody who  happens upon a copy of  the program is granted
  1552.     a limited liscence. This liscence is one whose duration is  3
  1553.     weeks,  it is merely a trial period designed to give the user
  1554.     time to decide if the program is suitable for his purpose. If
  1555.     use is continued after this trial period then registration is
  1556.     reguired, which includes payment of the $35 U.S. registration
  1557.     fee. (Or $45 in canadian funds.)
  1558.  
  1559.     To register please follow these steps:
  1560.  
  1561.        1.  Fill  out  the  registration  form   supplied  on  the
  1562.            distrubution disk in the file named RegForm.txt.   The
  1563.            owner and registration number of the copy is displayed
  1564.            when ProBat  starts at the version  screen. Hit CTRL-V
  1565.            in the PullDown menu and this screen will be repeated.
  1566.            Hitting   CTRL-R  will   bring  up   the  registration
  1567.            information  and a  message about  shareware, you  can
  1568.            find the necessary information there as well.
  1569.  
  1570.        2.  Send  me  the completed  form  with enclosed  check or
  1571.            money order at
  1572.  
  1573. *BoldFace on
  1574.                            Mark Tigges
  1575.                            2925 Altamont Cr.
  1576.                            West Vancouver B.C.
  1577.                            CANADA
  1578.                            V7V 3B9
  1579.  
  1580.     NOTE : Please make checks payable to Mark Tigges.
  1581.  
  1582. *BoldFace off
  1583.            as well as an explanation  for your planned use of the
  1584.     program, simply because I am very interested.
  1585.  
  1586.            The cost  of registering your  copy is $35 US,  please
  1587.     enclose  this sum  with the  registration form.  It would  be
  1588.     greatly  appreciated if  you also  enclosed some  hints about
  1589.     what I  should add for  future versions. If  you have noticed
  1590.     any bugs in  the program, or you think  something else should
  1591.     happen at one point in  the program, then please include that
  1592.     information.
  1593.  
  1594.            To make things simple for Canadian users I will accept
  1595.     $45 in canadian funds.
  1596.  
  1597.            If you are a business and would like to use Pro-Bat to
  1598.     help set up systems in your  offices then you can get a lower
  1599.     price  per  unit  ($5.00  discount  per  5  units to  minumum
  1600.     cost/per of $10.00 per unit).
  1601.  
  1602.            If regform.txt is not present on the distribution disk
  1603.     then send the following information:
  1604.  
  1605.        Your : - Name
  1606.               - Phone # ( inc. Area Code )
  1607.               - Address ( inc. Country )
  1608.  
  1609.               - The  registration  number  of  the  copy  you are
  1610.                 using
  1611.               - The Version number
  1612.               - Amount ($) enclosed
  1613.               - If you want the same version you are using or the
  1614.                 newest version - there may be a slight increase in
  1615.                 cost for subsequent versions
  1616.  
  1617. *BoldFace on
  1618.     /Benefits of registration
  1619. *BoldFace off
  1620.  
  1621.     1. Version updates for the price of a disk plus five dollars.
  1622.  
  1623.     2. If  somebody else registers  a copy with  your number then
  1624.     you get  the five dollars  taken away from  your next version
  1625.     update.
  1626.  
  1627.     3. A version  of Pro-Bat that has your  name written into it.
  1628.     Instead of somebody elses.
  1629.  
  1630.     4. A free conscience.
  1631.  
  1632.  
  1633.     5. Extensive technical assistance
  1634.  
  1635.  
  1636.        I can always be reached through the above address, my
  1637.        telephone number changes often, but my current number
  1638.        can be discovered through (604) 926 - 0366. Thank you
  1639.        very much and good luck!
  1640.  
  1641.     Thank  you for  registering. ShareWare  is a  benefit to both
  1642.     user  and  author  however  it  can't  succeed  without  your
  1643.     cooperation and support.
  1644.  
  1645.     Enjoy the program.
  1646.